
import 'dart:convert';

NewTeacherDto newTeacherDtoFromJson(String str) => NewTeacherDto.fromJson(json.decode(str));

String newTeacherDtoToJson(NewTeacherDto data) => json.encode(data.toJson());

class NewTeacherDto {
    NewTeacherDto({
        this.email,
        this.firstName,
        this.lastName,
        this.password,
        this.userName,
    });

    String? email;
    String? firstName;
    String? lastName;
    String? password;
    String? userName;

    factory NewTeacherDto.fromJson(Map<String, dynamic> json) => NewTeacherDto(
        email: json["email"],
        firstName: json["firstName"],
        lastName: json["lastName"],
        password: json["password"],
        userName: json["userName"],
    );

    Map<String, dynamic> toJson() => {
        "email": email,
        "firstName": firstName,
        "lastName": lastName,
        "password": password,
        "userName": userName,
    };
}
